#ifndef BONDDETAILPAGE_H
#define BONDDETAILPAGE_H

#include <qbprotocol/include/SSQBModel.h>

#include <QWidget>

namespace Ui {
class BondDetailPage;
}

class DetailData;
class BondDetailPage : public QWidget {
  Q_OBJECT

 public:
  explicit BondDetailPage(QWidget *parent = nullptr);
  ~BondDetailPage();

  void setDetailData(QSharedPointer<DetailData> data);

 private:
  void initBest5BOinExchange();
 private slots:
  void onCurrentTabChanged(int, bool);
  void on_btnShowDeals_toggled(bool checked);

  void onExchangeDataChanged(const QList<xQBExQuoteUnit_c> &);

 public:
  Ui::BondDetailPage *ui;

 private:
  QSharedPointer<DetailData> m_data = nullptr;
};

#endif  // BONDDETAILPAGE_H
